package com.lizhi.yun.system.sfrobot.controller;

import com.lizhi.common.yun.entity.ListResponseResult;
import com.lizhi.yun.system.sfrobot.handler.SfrobotRobotErrorHandler;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @Author: lizhi
 * @Description:
 * @Date: create in 2020/11/13 14:50
 */
@RestController
@RequestMapping(path = "/api/sfrobot/yun/robotError")
public class SfrobotRobotErrorController {

    @Resource
    private SfrobotRobotErrorHandler sfrobotRobotErrorHandler;

    @PostMapping(path = "/doMain")
    public ListResponseResult doMain(@RequestParam Map<String, Object> map, HttpServletRequest request) {
        return sfrobotRobotErrorHandler.doMain(map, request);
    }
}
